package net.zoneland.knowledge.model;

import org.apache.commons.lang3.StringUtils;

import net.zoneland.knowledge.enums.WorkStatusEnum;
import net.zoneland.uniflow.client.TaskObject;

/**
 * 流程平台返回对象包装.
 */
public class TaskObjectWrapper extends TaskObject {

    private WorkStatusEnum status;

    public WorkStatusEnum getStatus() {

        return status;
    }

    /**
     * 设置 status.
     *
     * @param status status
     */
    public void setStatus(final WorkStatusEnum status) {

        this.status = status;
    }

    public String getStatusName() {
        if (null != status) {
            return status.getName();
        }
        return StringUtils.EMPTY;
    }
}
